package com.forekonw.demo7;

/**
 * B相当于子类
 * A相当于父类(超类)
 *
 */
public class B extends A {
    public B(String name) {
        //表示调用父类当中的构造器super();
        super(name);
    }
    //B继承A

    public static void main(String[] args) {
        B b = new B("tony");
    }
}
